<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
失去光标事件：<input onblur="funA()"/><br/>
获取光标事件：<input onfocus="funA()"/><br/>
键盘按下事件：<input onkeydown="funA()"/><br/>
键盘抬起事件：<input onkeyup="funA()"/><br/>
内容改变事件：<input onchange="funA()"/><br/>
鼠标双击事件：
<button ondblclick="funA()">双击</button>
<br/>
鼠标移入事件：
<button onmouseover="funA()">移入</button>
<br/>
鼠标移出事件：
<button onmouseout="funA()">移出</button>
<br/>
</body>
</html>
<script>
    function funA() {
        alert('我触发了');
    }

    onload = function () {
        funA();
    }
</script>